package ch07.proxy;

/**
 * @description: 代理类实现送礼物接口
 * @author: Fesine
 * @createTime:2016/8/29 9:26
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/8/29 9:26
 */
public class Proxy implements GiveGift {

    private GiveGift gg;

    public Proxy(SchoolGirl mm) {
        gg = new Pursuit(mm);
    }

    public void giveDolls() {
        gg.giveDolls();
    }

    public void giveFlowers() {
        gg.giveFlowers();
    }

    public void giveChocolate() {
        gg.giveChocolate();
    }
}
